import traci


class FitnessCalculator:
    PORT = 8813
    
    NSGREEN = "GrGr"
    NSYELLOW = "yryr"
    WEGREEN = "rGrG"
    WEYELLOW = "ryry"
    
    PROGRAM = [WEYELLOW,WEYELLOW,WEYELLOW,NSGREEN,NSGREEN,NSGREEN,NSGREEN,NSGREEN,NSGREEN,NSGREEN,NSGREEN,NSYELLOW,NSYELLOW,WEGREEN]
    
    
    def __init__(self):
        traci.init(self.PORT, 10, 'localhost', 'no')
    
    def __del__(self):
        traci.close()
        
    def evaluate(self):
        step = 0
        while step == 0 or traci.simulation.getMinExpectedNumber() > 0 :
            traci.simulationStep()
            #programPointer = 
            